#!/usr/bin/env python
#coding=utf-8

import sys
reload(sys)
sys.setdefaultencoding( "utf-8" )

import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('192.168.213.135', 8888))
print(s.recv(4096))

for data in [b'dog']:
    s.send(data)
    print(s.recv(4096))
s.close()